package com.dkm.ec.sale.persistence.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.dkm.base.db.mybatis.dao.MyBatisDaoImpl;
import com.dkm.ec.sale.persistence.dao.SaleSkuGroupDao;
import com.dkm.ec.sale.persistence.entity.SaleSkuGroupPo;

/**
 * 对象功能:销售产品SKU自定义组 Dao接口的实现类
 * 开发公司:SKG.COM
 * 开发人员:HJD
 * 创建时间:2015-07-08 17:38:34
 */
@Repository
public class SaleSkuGroupDaoImpl extends MyBatisDaoImpl<String, SaleSkuGroupPo> implements SaleSkuGroupDao{

    @Override
    public String getNamespace() {
        return SaleSkuGroupPo.class.getName();
    }

	@Override
	public void deleteGroupByGroupKey(String group) {
		sqlSessionTemplate.delete(getNamespace() + ".deleteGroup"  , group);				
	}

	@Override
	public void deleteBySkuIds(Map<String, Object> skuGroupMap) {
		sqlSessionTemplate.delete(getNamespace()+".deleteBySkuIds", skuGroupMap);
	}

	@Override
	public void insertBatch(List<SaleSkuGroupPo> skuGroupPos) {
		sqlSessionTemplate.insert(getNamespace()+".insertBatch", skuGroupPos);
	}
	
}
